public class Figure {

	private int position; 
	private int startPosition; //figurka po nasazeni
	private int finalPosition; //domecek figurky, cilova pozice
	private int distanceGone = 0;
	private String color; //pozdeji pres IDs
	private boolean isOnBoard = false;
	private boolean isVictory = false;
	
	public Figure(String color, int startPosition, int finalPosition) {
		this.position = startPosition;
		this.color = color;
		this.startPosition = startPosition;
		this.finalPosition = finalPosition;
	}
	
	public String getColor() {
		return color;
	}
	
	public int getPosition() {
		return position;
	}	
	
	public void setPosition(int newPosition) {
		position = newPosition;
	}
	
	public void setDistanceGone(int distanceGone) {
		this.distanceGone = distanceGone; 
	}
	
	public int getDistanceGone() {
		return distanceGone;
	}
	
	public void setIsOnBoard(boolean isOnBoard) {
		this.isOnBoard = isOnBoard;
	}
	
	public boolean getIsOnBoard() {
		return isOnBoard;
	}
	
	public int getFinalPosition() {
		return finalPosition;
	}
	
	public void setFinalPosition(int finalPosition) {
		this.finalPosition = finalPosition;
	}
	
	public int getStartingPos() {
		return startPosition;
	}
	
	public boolean isVictory() {
		return isVictory;
	}
	
	public void setIsVictory(boolean isVictory) {
		this.isVictory = isVictory;
	}
	
	public String toString() {
		return "Figurka barvy: " + color + "; na pozici " + position + "; ma aktivitu: "
				+ ( (isOnBoard) ? "aktivni" : "neaktivni" ) + "; urazila vzdalenost: "+distanceGone;
	}
}